﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CPPEI.ServiceModel
{
    public class SingleResult<T>
    {
        public bool IsSuccess { get; set; }
        public int ErrorCode { get; set; }
        public string Message { get; set; }
        public T Data { get; set; }

        public SingleResult()
        {
            IsSuccess = true;
        }

        public SingleResult(bool isSuccess, T data)
        {
            IsSuccess = isSuccess;
            Data = data;
        }
    }
}
